package com.cs342.uwosh.cloudycontacts.tasks.db;




import com.cs342.uwosh.cloudycontacts.Category;
import com.cs342.uwosh.cloudycontacts.MainActivity;
import com.cs342.uwosh.cloudycontacts.SqlConnect;

import android.os.AsyncTask;

public class GetCategoryByIdTask extends AsyncTask<Object, Integer, Category>{

	@Override
	protected Category doInBackground(Object... arg0) {
		SqlConnect db = MainActivity.db;
		arg0[2] = db.getCategory((Integer)arg0[1]);
		return db.getCategory((Integer)arg0[1]);
	}

}